import request from '@/utils/request'
export const getArticleList = (params) => {
  return request.get('/admin/interview/query', {
    params
  })
}
// 删除面经
export const delArticle = (id) => {
  return request({
    method: 'delete',
    url: '/admin/interview/remove',
    data: { id }
  })
}
// 添加面经
export const addArticle = (data) => {
  return request({
    method: 'post',
    url: '/admin/interview/create',
    data
  })
}
// 获取单个面经
export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', {
    params: {
      id
    }
  })
}
// 保存编辑后的数据
export const updateArticle = (data) => {
  return request.put('/admin/interview/update', data)
}
